package trabajoISW2.presentation.shared;

import trabajoISW2.domain.implementations.User;

public class UserMapper {
	
	
	public static UserDTO createDTO (User u){
		return new UserDTO(u.getUserId(), u.getName(), u.getSurname(), u.getEmail(), u.getGender(), u.getBirthdate());
	}

	public static User updteDomainObject(UserDTO dto, String pass){
		return new User(dto.getUserId(), dto.getName(),
				dto.getSurname(), dto.getEmail(), dto.getGender(),
				pass, dto.getBirthdate());
		
	}
	

	
	

	
}
